package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.system.bo.ParkLeaveQueryPriceVo;
import com.ruoyi.system.bo.ZsyyParkLeaveQueryBo;
import com.ruoyi.system.domain.ZsyyParkLeave;
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
import com.ruoyi.common.core.mybatisplus.cache.MybatisPlusRedisCache;
import com.ruoyi.system.dto.ParkLeavePriceVo;
import com.ruoyi.system.vo.GangTingLeaveVo;
import com.ruoyi.system.vo.ZsyyParkLeaveVo;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车辆离场记录Mapper接口
 *
 * @author wangghua
 * @date 2021-07-14
 */
// 如使需切换数据源 请勿使用缓存 会造成数据不一致现象
//@CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class)
public interface ZsyyParkLeaveMapper extends BaseMapperPlus<ZsyyParkLeave> {

    ParkLeavePriceVo getPriceTotal(@Param("query") ParkLeaveQueryPriceVo priceVo);

	Page<ZsyyParkLeaveVo> queryPageList(@Param("page")Page<ZsyyParkLeaveVo> buildPage, @Param("query")ZsyyParkLeaveQueryBo bo);

	Page<ZsyyParkLeaveVo> leaveRecordList(@Param("page")Page<ZsyyParkLeaveVo> buildPage, @Param("query")ZsyyParkLeaveQueryBo bo);

	Page<GangTingLeaveVo> gangtingList(@Param("page")Page<GangTingLeaveVo> buildPage, @Param("query")ZsyyParkLeaveQueryBo bo);

	List<GangTingLeaveVo> exportGangTing(@Param("query")ZsyyParkLeaveQueryBo bo);

	List<ZsyyParkLeaveVo> exportLeaveRecord(@Param("query")ZsyyParkLeaveQueryBo bo);
}
